package com.fastCms.business.mall.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 杭州人参大健康管理有限公司 版权所有 Copyright 2019<br>
 *
 * @Description: <br>
 * @Project: healthPro <br>
 * @CreateDate: Created in 2019年6月6日 下午3:32:51 <br>
 * @Author: < a href="jiahui.zhao@healthpro.vip">jiahui.zhao</ a>
 */
@ApiModel(value = "ProductAddressPO", description = "商家地址库信息")
@Data
public class ProductAddressPO {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "组织编码", example = "RSD")
    @NotBlank(message = "组织编码不能为空")
    private String organizeCode;

    @ApiModelProperty(value = "联系人", example = "赵佳辉")
    @NotBlank(message = "联系人不能为空")
    @Length(max = 20, message = "联系人字数超过限制")
    private String name;

    @ApiModelProperty(value = "联系方式类型 1:手机号 2：座机", example = "1")
    @NotNull(message = "联系方式类型不能为空")
    private Integer contactType;

    @ApiModelProperty(value = "联系方式", example = "18814887236")
    @NotBlank(message = "联系方式不能为空")
    @Length(max = 30, message = "联系方式字数超过限制")
    private String phone;

    @ApiModelProperty(value = "省名称", example = "浙江省")
    @NotBlank(message = "省名称不能为空")
    private String provinceName;

    @ApiModelProperty(value = "城市名称", example = "杭州市")
    private String cityName;

    @ApiModelProperty(value = "区/县名称", example = "西湖区")
    private String countyName;

    @ApiModelProperty(value = "详细地址", example = "杭照所")
    @NotBlank(message = "详细地址不能为空")
    @Length(max = 50, message = "详细地址字数超过限制")
    private String address;

    @ApiModelProperty(value = "完整地址", example = "浙江省杭州市西湖区杭照所")
    @NotBlank(message = "完整地址不能为空")
    private String fullAddress;

    @ApiModelProperty(value = "省ID", example = "15")
    @NotBlank(message = "省ID不能为空")
    private String provinceId;

    @ApiModelProperty(value = "城市ID", example = "1213")
    private String cityId;

    @ApiModelProperty(value = "区/县ID", example = "3411")
    private String countyId;

    @ApiModelProperty(value = "是否是默认地址 0：否 1：是", example = "1")
    @NotNull(message = "是否是默认地址不能为空")
    private Integer isDefault;

    @ApiModelProperty(value = "备注", example = "")
    private String remark;

}
